//
//  SNPromotionModel.m
//  app
//
//  Created by 王少宁 on 15/6/19.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "SNPromotionModel.h"

@implementation SNPromotionModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if ([super init]) {
        
        if (dict[@"id"]) {
            _promotion = YES;
        } else {
            _promotion = NO;
        }
        
        _Id = dict[@"id"];
        _name = dict[@"name"];
        _title = dict[@"title"];
    }
    return self;
}

+ (instancetype)modelWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}

@end
